package de.urlaub.client.logic;

import java.util.Hashtable;

import javax.naming.InitialContext;
import javax.naming.NamingException;

public class VacationPanelUtil 
{	
	public static InitialContext getInitialContext()
	{
		InitialContext initialContext = null;
		
		Hashtable<String, String> props = new Hashtable<String, String>();
		
		props.put(InitialContext.INITIAL_CONTEXT_FACTORY,
				"org.jnp.interfaces.NamingContextFactory");
		props.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099");
		
		try
		{
			initialContext = new InitialContext (props);
		}
		catch (NamingException nEx)
		{
			nEx.printStackTrace();
		}
		
		return initialContext;
	}
}
